<?php echo $this->doctype(); ?>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->headTitle(); ?>
        <?php echo $this->headMeta(); ?>
        <?php echo $this->headLink(); ?>
        <?php echo $this->headScript(); ?>
    </head>
    <body>
        <a name="arriba"></a>
        <!-- Container -->
        <div id="container">
            <!-- Header -->
            <div id="header">
                <!-- Top -->
                <div id="top">
                    <!-- Logo -->
                    <div class="logo">
                        <a href="/" title="Administrador" class="tooltip"><img src="/assets/logo.png" alt="Administrador" /></a>
                    </div>
                    <!-- End of Logo -->

                    <!-- Meta information -->
                    <div class="meta">

                        <p>Bienvenido, <?php echo $this->administrador->nombre . ' ' . $this->administrador->apellido; ?>!</p>
                        <ul>
                            <li><a href="<?php echo $this->url(array('controller' => 'login', 'action' => 'logout')); ?>" title="Terminar Sesión" class="tooltip"><span class="ui-icon ui-icon-power"></span>Salir</a></li>
                            <!--<li><a href="#" title="Cambiar Configuración" class="tooltip"><span class="ui-icon ui-icon-wrench"></span>Config</a></li>-->
                            <li><a href="<?php echo $this->url(array('controller' => 'administrador', 'action' => 'editar', 'id' => $this->administrador->id)); ?>" title="Datos de Cuenta" class="tooltip"><span class="ui-icon ui-icon-person"></span>Mi Cuenta</a></li>
                        </ul>
                    </div>
                    <!-- End of Meta information -->
                </div>
                <!-- End of Top-->
                <!-- The navigation bar -->
                <div id="navbar">
                    <!-- class="nav" -->
                    <?php echo $this->navigation()->menu()->setUlClass('nav'); ?>
                </div>
            </div>
            <!-- End of Header -->
            <!-- Background wrapper -->
            <div id="bgwrap">

                    <?php if (count($this->messages)) : ?>
            <?php foreach ($this->messages as $message) : ?>
                <div class="message <?php echo $message['status']; ?> close">
                   <p><?php echo $this->escape($message['content']); ?></p>
                </div>
            <?php endforeach; ?>
    <?php endif; ?>



                <?php echo $this->layout()->content; ?>

                    <!-- Sidebar -->
                    <div id="sidebar">
                        <h2>Calendario</h2>
                        <!-- Datepicker -->
                        <div id="datepicker"></div>
                        <!-- End of Datepicker -->
                        <h2>Informaci&oacute;n</h2>
                        <!-- Accordion -->
                        <div id="accordion">
                            <div>
                                <h3><a href="#" title="Php" class="tooltip">Php</a></h3>
                                <div>
                                    <ul>
                                        <li>Algo de información</li>
                                    </ul>
                                </div>
                            </div>
                            <div>
                                <h3><a href="#" title="Servidor" class="tooltip">Servidor</a></h3>

                                <div>
                                    <ul>
                                        <li>Algo de información</li>
                                    </ul>
                                </div>
                            </div>
                            <div>
                                <h3><a href="#" title="MySql" class="tooltip">MySql</a></h3>
                                <div>
                                    <ul>
                                        <li>Algo de información</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <!-- End of Accordion-->
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                    </div>
                    <!-- End of Sidebar -->
                </div>
                <!-- End of bgwrap -->
            </div>
            <!-- End of Container -->
            <!-- Footer -->
            <div id="footer">
                <p class="mid">
                    <a href="#arriba" title="Arriba" class="tooltip">Arriba</a>&middot;<a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'index')); ?>" title="Inicio" class="tooltip">Inicio</a>&middot;<a href="#" title="Configuración" class="tooltip">Configuraci&oacute;n</a>&middot;<a href="login/logout/" title="Terminar Sesión" class="tooltip">Logout</a>
                </p>
                <p class="mid">
                    <!-- Change this to your own once purchased -->
                    &copy; Martin Arrua <?php echo $this->anio; ?>. All rights reserved.
                <!-- -->
            </p>
        </div>
        <!-- End of Footer -->
    </body>
</html>